package com.brilliant.hydraulics.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhangjihua
 * @date 2024/11/7 11:37
 */
@Slf4j
@RestController
public class CommonController extends BaseController {
    @Resource
    private StringRedisTemplate stringRedisTemplate;

    @RequestMapping("/common/test")
    public void test() {

        stringRedisTemplate.opsForHash().put("z", "j", "h");
        System.out.println("test");

    }
}
